/**
 * 
 */
package com.estock.common.model.security;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.estock.common.model.security.enums.StockGroup;

/**
 * @author richard
 *
 */
@Entity
@Table(name="StockSummary")
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class StockSummary extends BaseEntity {

	private static final long serialVersionUID = -2505771261059721731L;
	
	private String code;
	
	private String mainBizDesc;
	
	private int industryId;
	
	@Transient
	private StockCategory industry;
	
	private String conceptIds;
	
	@Transient
	private List<StockCategory> concepts;
	
	private int stockGroupId;
	
	@Transient
	private StockGroup stockGroup;
	
	private Number revenue;
	
	private Number netProfit;
	
	private Number dynamicPE;
	
	private Number staticPE;
	
	private Number pb;
	
	private Number roe;
	
	private Number eps;
	
	private Number naps;
	
	private Number cfps;
	
	private int totalShares;
	
	private int tradableShares;
	
	private int latestUnlocks;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMainBizDesc() {
		return mainBizDesc;
	}

	public void setMainBizDesc(String mainBizDesc) {
		this.mainBizDesc = mainBizDesc;
	}

	public int getIndustryId() {
		return industryId;
	}

	public void setIndustryId(int industryId) {
		this.industryId = industryId;
	}

	public StockCategory getIndustry() {
		return industry;
	}

	public void setIndustry(StockCategory industry) {
		this.industry = industry;
	}

	public String getConceptIds() {
		return conceptIds;
	}

	public void setConceptIds(String conceptIds) {
		this.conceptIds = conceptIds;
	}

	public List<StockCategory> getConcepts() {
		return concepts;
	}

	public void setConcepts(List<StockCategory> concepts) {
		this.concepts = concepts;
	}

	public int getStockGroupId() {
		return stockGroupId;
	}

	public void setStockGroupId(int stockGroupId) {
		this.stockGroupId = stockGroupId;
	}

	public StockGroup getStockGroup() {
		return stockGroup;
	}

	public void setStockGroup(StockGroup stockGroup) {
		this.stockGroup = stockGroup;
	}

	public Number getRevenue() {
		return revenue;
	}

	public void setRevenue(Number revenue) {
		this.revenue = revenue;
	}

	public Number getNetProfit() {
		return netProfit;
	}

	public void setNetProfit(Number netProfit) {
		this.netProfit = netProfit;
	}

	public Number getDynamicPE() {
		return dynamicPE;
	}

	public void setDynamicPE(Number dynamicPE) {
		this.dynamicPE = dynamicPE;
	}

	public Number getStaticPE() {
		return staticPE;
	}

	public void setStaticPE(Number staticPE) {
		this.staticPE = staticPE;
	}

	public Number getPb() {
		return pb;
	}

	public void setPb(Number pb) {
		this.pb = pb;
	}

	public Number getRoe() {
		return roe;
	}

	public void setRoe(Number roe) {
		this.roe = roe;
	}

	public Number getEps() {
		return eps;
	}

	public void setEps(Number eps) {
		this.eps = eps;
	}

	public Number getNaps() {
		return naps;
	}

	public void setNaps(Number naps) {
		this.naps = naps;
	}

	public Number getCfps() {
		return cfps;
	}

	public void setCfps(Number cfps) {
		this.cfps = cfps;
	}

	public int getTotalShares() {
		return totalShares;
	}

	public void setTotalShares(int totalShares) {
		this.totalShares = totalShares;
	}

	public int getTradableShares() {
		return tradableShares;
	}

	public void setTradableShares(int tradableShares) {
		this.tradableShares = tradableShares;
	}

	public int getLatestUnlocks() {
		return latestUnlocks;
	}

	public void setLatestUnlocks(int latestUnlocks) {
		this.latestUnlocks = latestUnlocks;
	}

}
